package com.lanswon.qzsmk.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
 * 卡收费规则定义表
 * @author sun
 *
 */
public class FeeRule implements Serializable {
    /** 卡收费规则ID--uuid */
    private String feeRuleId;

    /** 卡产品代码 */
    private String cardpCode;

    /** 应用类型 */
    private Integer appType;

    /** 交易代码 */
    private String transCode;

    /** 费用类型 */
    private String feeType;

    /** 是否可退费  0否1是 */
    private String allowReturn;

    /** 基准值 */
    private BigDecimal referValue;

    /** 有效期起始日期  如果此项为空则说明没有起始日期 */
    private Date validStartDate;

    /** 有效期结束日期  如果此项为空说明没有结束日期 */
    private Date validEndDate;

    private static final long serialVersionUID = 1L;

    public String getFeeRuleId() {
        return feeRuleId;
    }

    public void setFeeRuleId(String feeRuleId) {
        this.feeRuleId = feeRuleId == null ? null : feeRuleId.trim();
    }

    public String getCardpCode() {
        return cardpCode;
    }

    public void setCardpCode(String cardpCode) {
        this.cardpCode = cardpCode == null ? null : cardpCode.trim();
    }

    public Integer getAppType() {
        return appType;
    }

    public void setAppType(Integer appType) {
        this.appType = appType;
    }

    public String getTransCode() {
        return transCode;
    }

    public void setTransCode(String transCode) {
        this.transCode = transCode == null ? null : transCode.trim();
    }

    public String getFeeType() {
        return feeType;
    }

    public void setFeeType(String feeType) {
        this.feeType = feeType == null ? null : feeType.trim();
    }

    public String getAllowReturn() {
        return allowReturn;
    }

    public void setAllowReturn(String allowReturn) {
        this.allowReturn = allowReturn == null ? null : allowReturn.trim();
    }

    public BigDecimal getReferValue() {
        return referValue;
    }

    public void setReferValue(BigDecimal referValue) {
        this.referValue = referValue;
    }

    public Date getValidStartDate() {
        return validStartDate;
    }

    public void setValidStartDate(Date validStartDate) {
        this.validStartDate = validStartDate;
    }

    public Date getValidEndDate() {
        return validEndDate;
    }

    public void setValidEndDate(Date validEndDate) {
        this.validEndDate = validEndDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", feeRuleId=").append(feeRuleId);
        sb.append(", cardpCode=").append(cardpCode);
        sb.append(", appType=").append(appType);
        sb.append(", transCode=").append(transCode);
        sb.append(", feeType=").append(feeType);
        sb.append(", allowReturn=").append(allowReturn);
        sb.append(", referValue=").append(referValue);
        sb.append(", validStartDate=").append(validStartDate);
        sb.append(", validEndDate=").append(validEndDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}